package com.mccken.designpattern.listener;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2022-10-24 13:44
 **/
public class ListenerFactory {
	
	public static List<McckenListener> listeners = new ArrayList<>();
	
	public static void executeListener(){
		for (McckenListener listener : listeners) {
			listener.onChange();
		}
		
	}
	
}
